//
//  ImageCollectionViewCell.swift
//  OnceNectar
//
//  Created by 吴凌 on 2018/8/3.
//  Copyright © 2018年 com.inwhoop. All rights reserved.
//

import UIKit
protocol ImageCollectionViewCellDelegate: NSObjectProtocol {
    func delIamge(cell:ImageCollectionViewCell)
}
class ImageCollectionViewCell: UICollectionViewCell {

    weak var delegate: ImageCollectionViewCellDelegate?
    @IBOutlet weak var img: UIImageView!
    @IBOutlet weak var delBtn: UIButton!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    @IBAction func del(_ sender: Any) {
        self.delegate?.delIamge(cell: self)
    }
    
}
